package com.l2jserver.gameserver.model.conditions;

import com.l2jserver.gameserver.model.stats.Env;

/**
 * The Class ConditionPlayerSouls.
 */
public class ConditionPlayerSouls extends Condition
{
	private final int _souls;
	
	/**
	 * Instantiates a new condition player souls.
	 * @param souls the souls
	 */
	public ConditionPlayerSouls(int souls)
	{
		_souls = souls;
	}
	
	@Override
	public boolean testImpl(Env env)
	{
		return (env.getPlayer() != null) && (env.getPlayer().getChargedSouls() >= _souls);
	}
}
